I am largely following the DADA2 tutorial by Benjamin Callahan that can be found here.
## [1] "A1" "A10" "A11" "A12" "A2" "A3" "A4" "A5" "A6" "A7" "A8" "A9"
## [13] "B1" "B10" "B11" "B12" "B2" "B3" "B4" "B5" "B6" "B7" "B8" "B9"
## [25] "C1" "C10" "C11" "C12" "C2" "C3" "C4" "C5" "C6" "C7" "C8" "C9"
## [37] "G5" "G6"
Viewing the quality of 2 of the forward samples
Viewing the quality of the same 2 of the reverse samples
You can see in above figures that the quality of reads drop off towards the end, so we need to filter out these low quality reads
## reads.in reads.out
## A1_16S_R1.fastq 46968 44461
## A10_16S_R1.fastq 25343 23991
## A11_16S_R1.fastq 27398 26006
## A12_16S_R1.fastq 45822 44152
## A2_16S_R1.fastq 99390 94836
## A3_16S_R1.fastq 77568 73174
After filtering out the low quality reads, we have maintained about 95.5 of the original reads.
Viewing the quality of the same 2 of the forward samples post filtering and trimming
Viewing the quality of the same 2 of the reverse samples post filtering and trimming
The error rates for each possible transition (A→C, A→G, …) are shown. Points are the observed error rates for each consensus quality score. The black line shows the estimated error rates after convergence of the machine-learning algorithm. The red line shows the error rates expected under the nominal definition of the Q-score. We want the estimated error rates (black line) to be a good fit to the observed rates (points), and the error rates to drop with increased quality.
We are now ready to apply the core sample inference algorithm to the filtered and trimmed sequence data.
Forward sample inference
## Sample 1 - 44461 reads in 9515 unique sequences.
## Sample 2 - 23991 reads in 6094 unique sequences.
## Sample 3 - 26006 reads in 6312 unique sequences.
## Sample 4 - 44152 reads in 7218 unique sequences.
## Sample 5 - 94836 reads in 13509 unique sequences.
## Sample 6 - 73174 reads in 9644 unique sequences.
## Sample 7 - 22069 reads in 4917 unique sequences.
## Sample 8 - 76841 reads in 25268 unique sequences.
## Sample 9 - 41897 reads in 7509 unique sequences.
## Sample 10 - 19892 reads in 5018 unique sequences.
## Sample 11 - 48504 reads in 7342 unique sequences.
## Sample 12 - 32048 reads in 7630 unique sequences.
## Sample 13 - 90475 reads in 7748 unique sequences.
## Sample 14 - 24910 reads in 5725 unique sequences.
## Sample 15 - 34782 reads in 5737 unique sequences.
## Sample 16 - 50069 reads in 5167 unique sequences.
## Sample 17 - 76155 reads in 7895 unique sequences.
## Sample 18 - 34374 reads in 5211 unique sequences.
## Sample 19 - 90460 reads in 8319 unique sequences.
## Sample 20 - 23566 reads in 5815 unique sequences.
## Sample 21 - 53651 reads in 5991 unique sequences.
## Sample 22 - 110660 reads in 10438 unique sequences.
## Sample 23 - 14928 reads in 3601 unique sequences.
## Sample 24 - 30116 reads in 6468 unique sequences.
## Sample 25 - 27927 reads in 5388 unique sequences.
## Sample 26 - 73356 reads in 7647 unique sequences.
## Sample 27 - 23594 reads in 6498 unique sequences.
## Sample 28 - 20343 reads in 4504 unique sequences.
## Sample 29 - 25590 reads in 6768 unique sequences.
## Sample 30 - 10144 reads in 3129 unique sequences.
## Sample 31 - 42054 reads in 7901 unique sequences.
## Sample 32 - 25161 reads in 7367 unique sequences.
## Sample 33 - 73293 reads in 8481 unique sequences.
## Sample 34 - 37175 reads in 5029 unique sequences.
## Sample 35 - 30216 reads in 4299 unique sequences.
## Sample 36 - 43608 reads in 5216 unique sequences.
## Sample 37 - 1795 reads in 421 unique sequences.
## Sample 38 - 162 reads in 63 unique sequences.
Inspecting the returned dada-class object for the first forward sample:
## dada-class: object describing DADA2 denoising results
## 144 sequence variants were inferred from 9515 input unique sequences.
## Key parameters: OMEGA_A = 1e-40, OMEGA_C = 1e-40, BAND_SIZE = 16
The DADA2 algorithm inferred 144 true sequence variants from the 9515 unique sequences in the first sample. There is much more to the dada-class return object than this (see help("dada-class") for some info), including multiple diagnostics about the quality of each denoised sequence variant, but that is beyond the scope of an introductory tutorial.
Reverse sample inference
## Sample 1 - 44461 reads in 9175 unique sequences.
## Sample 2 - 23991 reads in 5924 unique sequences.
## Sample 3 - 26006 reads in 6092 unique sequences.
## Sample 4 - 44152 reads in 7108 unique sequences.
## Sample 5 - 94836 reads in 12281 unique sequences.
## Sample 6 - 73174 reads in 8686 unique sequences.
## Sample 7 - 22069 reads in 4797 unique sequences.
## Sample 8 - 76841 reads in 24793 unique sequences.
## Sample 9 - 41897 reads in 7149 unique sequences.
## Sample 10 - 19892 reads in 4939 unique sequences.
## Sample 11 - 48504 reads in 7069 unique sequences.
## Sample 12 - 32048 reads in 7283 unique sequences.
## Sample 13 - 90475 reads in 7578 unique sequences.
## Sample 14 - 24910 reads in 5526 unique sequences.
## Sample 15 - 34782 reads in 5706 unique sequences.
## Sample 16 - 50069 reads in 5134 unique sequences.
## Sample 17 - 76155 reads in 7407 unique sequences.
## Sample 18 - 34374 reads in 4744 unique sequences.
## Sample 19 - 90460 reads in 8211 unique sequences.
## Sample 20 - 23566 reads in 5706 unique sequences.
## Sample 21 - 53651 reads in 5681 unique sequences.
## Sample 22 - 110660 reads in 10194 unique sequences.
## Sample 23 - 14928 reads in 3754 unique sequences.
## Sample 24 - 30116 reads in 6446 unique sequences.
## Sample 25 - 27927 reads in 5233 unique sequences.
## Sample 26 - 73356 reads in 7528 unique sequences.
## Sample 27 - 23594 reads in 6469 unique sequences.
## Sample 28 - 20343 reads in 4401 unique sequences.
## Sample 29 - 25590 reads in 6315 unique sequences.
## Sample 30 - 10144 reads in 3041 unique sequences.
## Sample 31 - 42054 reads in 7772 unique sequences.
## Sample 32 - 25161 reads in 7026 unique sequences.
## Sample 33 - 73293 reads in 8758 unique sequences.
## Sample 34 - 37175 reads in 5235 unique sequences.
## Sample 35 - 30216 reads in 4296 unique sequences.
## Sample 36 - 43608 reads in 5159 unique sequences.
## Sample 37 - 1795 reads in 465 unique sequences.
## Sample 38 - 162 reads in 69 unique sequences.
We now merge the forward and reverse reads together to obtain the full denoised sequences. Merging is performed by aligning the denoised forward reads with the reverse-complement of the corresponding denoised reverse reads, and then constructing the merged “contig” sequences. By default, merged sequences are only output if the forward and reverse reads overlap by at least 12 bases, and are identical to each other in the overlap region (but these conditions can be changed via function arguments).
The mergers object is a list of data.frames from each sample. Each data.frame contains the merged sequence, its abundance, and the indices of the forward and reverse sequence variants that were merged. Paired reads that did not exactly overlap were removed by mergePairs, further reducing spurious output.
We can now construct an amplicon sequence variant table (ASV) table, a higher-resolution version of the OTU table produced by traditional methods.
##
## 221 222 223 227 228 239 246 249 250 251 252 253 254 255 256 257
## 1 2 4 4 1 1 1 1 1 10 105 3259 140 9 5 2
The sequence table is a matrix with rows corresponding to (and named by) the samples, and columns corresponding to (and named by) the sequence variants. This table contains 3546 ASVs.
After viewing the distribution of read lengths, it looks like we have some that fall outside the expected range (244 - 264) so we will go ahead and remove these non target length sequences.
##
## 246 249 250 251 252 253 254 255 256 257
## 1 1 1 10 105 3259 140 9 5 2
This updated table now contains 3533 ASVs.
The core dada method corrects substitution and indel errors, but chimeras remain. Fortunately, the accuracy of sequence variants after denoising makes identifying chimeric ASVs simpler than when dealing with fuzzy OTUs. Chimeric sequences are identified if they can be exactly reconstructed by combining a left-segment and a right-segment from two more abundant “parent” sequences.
A total of 40 bimeras were identified from the 3493 input sequences, thus retaining 99.8% of sequences.
As a final check of our progress, we can look at the number of reads that made it through each step in the pipeline:
| Genotype | Treatment | Input | Filtered | Denoised Forward | Denoised Reverse | Merged | Nonchimera |
|---|---|---|---|---|---|---|---|
| 15 | AMB MP+ | 46968 | 44461 | 44392 | 44369 | 44242 | 44230 |
| 6 | OAW MP+ | 25343 | 23991 | 23882 | 23969 | 23811 | 23811 |
| 5 | OAW Control | 27398 | 26006 | 25982 | 25986 | 25976 | 25976 |
| 5a | AMB MP+ | 45822 | 44152 | 44099 | 44109 | 43973 | 43973 |
| 10a | OAW MP+ | 99390 | 94836 | 94653 | 94671 | 94353 | 94205 |
| 5a | AMB Control | 77568 | 73174 | 73129 | 73130 | 73019 | 73019 |
| 15 | OAW Control | 23219 | 22069 | 22048 | 22045 | 22026 | 22026 |
| 15 | OAW MP+ | 82624 | 76841 | 76349 | 76438 | 73826 | 72033 |
| 10a | AMB MP+ | 44719 | 41897 | 41807 | 41866 | 41495 | 41495 |
| 15 | AMB Control | 21016 | 19892 | 19813 | 19857 | 19742 | 19742 |
| 6 | AMB Control | 50868 | 48504 | 48363 | 48414 | 48090 | 48044 |
| 5a | OAW Control | 33629 | 32048 | 31998 | 31994 | 31891 | 31859 |
| 11 | OAW MP+ | 93788 | 90475 | 90409 | 90402 | 90155 | 90146 |
| 5a | OAW MP+ | 26111 | 24910 | 24846 | 24859 | 24708 | 24683 |
| 5 | AMB Control | 36048 | 34782 | 34765 | 34754 | 34710 | 34666 |
| 12 | OAW MP+ | 51802 | 50069 | 49983 | 50013 | 49874 | 49845 |
| 12 | AMB Control | 79689 | 76155 | 76112 | 76109 | 75821 | 75770 |
| 2 | AMB MP+ | 36469 | 34374 | 34349 | 34353 | 34289 | 34289 |
| 2 | AMB Control | 93851 | 90460 | 90421 | 90323 | 90201 | 90201 |
| 6 | AMB MP+ | 24767 | 23566 | 23506 | 23538 | 23364 | 23328 |
| 2a | OAW Control | 56820 | 53651 | 53600 | 53596 | 53342 | 53342 |
| 10a | OAW Control | 114866 | 110660 | 110347 | 110599 | 110242 | 110229 |
| 12 | AMB MP+ | 16088 | 14928 | 14822 | 14864 | 14767 | 14690 |
| 11 | OAW Control | 31587 | 30116 | 30045 | 30016 | 29943 | 29901 |
| 5 | AMB MP+ | 29051 | 27927 | 27900 | 27896 | 27851 | 27851 |
| 2 | OAW MP+ | 75311 | 73356 | 73247 | 73255 | 72971 | 72971 |
| 6 | OAW Control | 24571 | 23594 | 23583 | 23578 | 23571 | 23571 |
| 2a | AMB MP+ | 21209 | 20343 | 20305 | 20329 | 20214 | 20185 |
| 10a | AMB Control | 26776 | 25590 | 25551 | 25561 | 25491 | 25491 |
| 11 | AMB MP+ | 10752 | 10144 | 10095 | 10134 | 10026 | 10026 |
| 5 | OAW MP+ | 43598 | 42054 | 42021 | 42021 | 41807 | 41723 |
| 2 | OAW Control | 26542 | 25161 | 25122 | 25096 | 25002 | 25002 |
| 11 | AMB Control | 76572 | 73293 | 73263 | 73255 | 72994 | 72994 |
| 2a | OAW MP+ | 38502 | 37175 | 37138 | 37084 | 36876 | 36876 |
| 12 | OAW Control | 31488 | 30216 | 30071 | 30042 | 29692 | 29692 |
| 2a | AMB Control | 44886 | 43608 | 43583 | 43597 | 43543 | 43525 |
| NA | blank_control | 1918 | 1795 | 1792 | 1792 | 1792 | 1792 |
| NA | blank_control | 169 | 162 | 153 | 158 | 153 | 153 |
It is common at this point, especially in 16S/18S/ITS amplicon sequencing, to assign taxonomy to the sequence variants. The DADA2 package provides a native implementation of the naive Bayesian classifier method for this purpose. The assignTaxonomy function takes as input a set of sequences to be classified and a training set of reference sequences with known taxonomy, and outputs taxonomic assignments with at least minBoot bootstrap confidence.
The dada2 package GitHub maintains the most updated versions of the Silva databases., but I downloaded the databases from the associated Zenodo. The versions in this GitHub repository, used here, were last updated on 26 July 2022.
Let’s inspect the taxonomic assignments:
## Kingdom Phylum Class Order
## [1,] "Bacteria" "Proteobacteria" "Alphaproteobacteria" "Rickettsiales"
## [2,] "Bacteria" "Proteobacteria" "Gammaproteobacteria" "Pseudomonadales"
## [3,] "Bacteria" "Cyanobacteria" "Cyanobacteriia" "Chloroplast"
## [4,] "Bacteria" "Myxococcota" "Myxococcia" "Myxococcales"
## [5,] "Bacteria" "Proteobacteria" "Gammaproteobacteria" "Burkholderiales"
## [6,] "Bacteria" "Campylobacterota" "Campylobacteria" "Campylobacterales"
## Family Genus Species
## [1,] "Fokiniaceae" "MD3-55" NA
## [2,] "Pseudomonadaceae" "Pseudomonas" NA
## [3,] NA NA NA
## [4,] "Myxococcaceae" "P3OB-42" NA
## [5,] "Alcaligenaceae" "Alcaligenes" NA
## [6,] NA NA NA
Great! We can now save this and hand it off to Phyloseq for further analyses.
## phyloseq-class experiment-level object
## otu_table() OTU Table: [ 3277 taxa and 38 samples ]
## sample_data() Sample Data: [ 38 samples by 5 sample variables ]
## tax_table() Taxonomy Table: [ 3277 taxa by 7 taxonomic ranks ]
Removal of mitochondira, chloroplasts, and non-bacteria taxa reduced the total number of taxa from 3493 to 3277 (216 total).
Just 5 out of the 3277 ASVs were classified as contaminants.
## phyloseq-class experiment-level object
## otu_table() OTU Table: [ 3272 taxa and 36 samples ]
## sample_data() Sample Data: [ 36 samples by 6 sample variables ]
## tax_table() Taxonomy Table: [ 3272 taxa by 7 taxonomic ranks ]
I have not rerun this portion since only running the pipeline with the 19 GE samples!
Looks good! We have now cleaned up the sample data to remove contamination from non target organisms and those from the negative controls.
Sample A5 is weirdly high so I am going to remove it from here and through downstream analyses.
## phyloseq-class experiment-level object
## otu_table() OTU Table: [ 3272 taxa and 36 samples ]
## sample_data() Sample Data: [ 36 samples by 6 sample variables ]
## tax_table() Taxonomy Table: [ 3272 taxa by 8 taxonomic ranks ]
## phyloseq-class experiment-level object
## otu_table() OTU Table: [ 3145 taxa and 36 samples ]
## sample_data() Sample Data: [ 36 samples by 6 sample variables ]
## tax_table() Taxonomy Table: [ 3145 taxa by 8 taxonomic ranks ]
## [1] "samples with counts below z-score -2.5 :"
## character(0)
## [1] "zscores:"
## named numeric(0)
## [1] "OTUs passing frequency cutoff 1e-04 : 260"
## [1] "OTUs with counts in 0.02 of samples:"
##
## TRUE
## 260
## phyloseq-class experiment-level object
## otu_table() OTU Table: [ 260 taxa and 36 samples ]
## sample_data() Sample Data: [ 36 samples by 6 sample variables ]
## tax_table() Taxonomy Table: [ 260 taxa by 8 taxonomic ranks ]
## named numeric(0)
## phyloseq-class experiment-level object
## otu_table() OTU Table: [ 260 taxa and 36 samples ]
## sample_data() Sample Data: [ 36 samples by 6 sample variables ]
## tax_table() Taxonomy Table: [ 260 taxa by 8 taxonomic ranks ]
## Warning: Non-normality of residuals detected (p < .001).
## Warning: Heteroscedasticity (non-constant error variance) detected (p < .001).
## Analysis of Deviance Table (Type II Wald chisquare tests)
##
## Response: InvSimpson
## Chisq Df Pr(>Chisq)
## Treatment 2.3185 3 0.509
## Linear mixed model fit by REML ['lmerMod']
## Formula: InvSimpson ~ Treatment + (1 | Genotype)
## Data: alpha_df_div
##
## REML criterion at convergence: 263.6
##
## Scaled residuals:
## Min 1Q Median 3Q Max
## -0.7353 -0.2933 -0.0720 -0.0102 5.1721
##
## Random effects:
## Groups Name Variance Std.Dev.
## Genotype (Intercept) 0.534 0.7307
## Residual 167.606 12.9463
## Number of obs: 36, groups: Genotype, 9
##
## Fixed effects:
## Estimate Std. Error t value
## (Intercept) 2.044 4.322 0.473
## TreatmentAMB MP+ 1.182 6.103 0.194
## TreatmentOAW Control 2.914 6.103 0.478
## TreatmentOAW MP+ 8.566 6.103 1.404
##
## Correlation of Fixed Effects:
## (Intr) TAMBMP TrOAWC
## TrtmnAMBMP+ -0.706
## TrtmntOAWCn -0.706 0.500
## TrtmnOAWMP+ -0.706 0.500 0.500
## Warning: Non-normality of residuals detected (p = 0.026).
## OK: Error variance appears to be homoscedastic (p = 0.625).
## Analysis of Deviance Table (Type II Wald chisquare tests)
##
## Response: Shannon
## Chisq Df Pr(>Chisq)
## Treatment 3.8054 3 0.2833
## Linear mixed model fit by REML ['lmerMod']
## Formula: Shannon ~ Treatment + (1 | Genotype)
## Data: alpha_df_div
##
## REML criterion at convergence: 114.7
##
## Scaled residuals:
## Min 1Q Median 3Q Max
## -1.2388 -0.6203 -0.2258 0.6095 2.9467
##
## Random effects:
## Groups Name Variance Std.Dev.
## Genotype (Intercept) 0.2128 0.4613
## Residual 1.4273 1.1947
## Number of obs: 36, groups: Genotype, 9
##
## Fixed effects:
## Estimate Std. Error t value
## (Intercept) 1.2092 0.4269 2.833
## TreatmentAMB MP+ 0.9647 0.5632 1.713
## TreatmentOAW Control 0.9349 0.5632 1.660
## TreatmentOAW MP+ 0.5873 0.5632 1.043
##
## Correlation of Fixed Effects:
## (Intr) TAMBMP TrOAWC
## TrtmnAMBMP+ -0.660
## TrtmntOAWCn -0.660 0.500
## TrtmnOAWMP+ -0.660 0.500 0.500
## Warning: Non-normality of residuals detected (p < .001).
## Warning: Heteroscedasticity (non-constant error variance) detected (p < .001).
## Anova Table (Type II tests)
##
## Response: log(Observed)
## Sum Sq Df F value Pr(>F)
## Treatment 0.2745 3 0.5515 0.6508
## Residuals 5.3088 32
##
## Call:
## lm(formula = log(Observed) ~ Treatment, data = alpha_df_div)
##
## Residuals:
## Min 1Q Median 3Q Max
## -0.43302 -0.18991 -0.08929 0.13128 1.81286
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 4.581560 0.135769 33.745 <2e-16 ***
## TreatmentAMB MP+ -0.001242 0.192007 -0.006 0.995
## TreatmentOAW Control 0.112728 0.192007 0.587 0.561
## TreatmentOAW MP+ 0.208168 0.192007 1.084 0.286
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 0.4073 on 32 degrees of freedom
## Multiple R-squared: 0.04916, Adjusted R-squared: -0.03998
## F-statistic: 0.5515 on 3 and 32 DF, p-value: 0.6508
## OK: residuals appear as normally distributed (p = 0.306).
## OK: Error variance appears to be homoscedastic (p = 0.774).
## Analysis of Deviance Table (Type II Wald chisquare tests)
##
## Response: log(Evenness)
## Chisq Df Pr(>Chisq)
## Treatment 6.9493 3 0.07353 .
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## Linear mixed model fit by REML ['lmerMod']
## Formula: log(Evenness) ~ Treatment + (1 | Genotype)
## Data: alpha_df_div
##
## REML criterion at convergence: 84.6
##
## Scaled residuals:
## Min 1Q Median 3Q Max
## -1.7696 -0.6966 0.1199 0.6856 1.4844
##
## Random effects:
## Groups Name Variance Std.Dev.
## Genotype (Intercept) 0.09741 0.3121
## Residual 0.54660 0.7393
## Number of obs: 36, groups: Genotype, 9
##
## Fixed effects:
## Estimate Std. Error t value
## (Intercept) -1.6233 0.2675 -6.068
## TreatmentAMB MP+ 0.8272 0.3485 2.373
## TreatmentOAW Control 0.5543 0.3485 1.590
## TreatmentOAW MP+ 0.1622 0.3485 0.465
##
## Correlation of Fixed Effects:
## (Intr) TAMBMP TrOAWC
## TrtmnAMBMP+ -0.651
## TrtmntOAWCn -0.651 0.500
## TrtmnOAWMP+ -0.651 0.500 0.500
## phyloseq-class experiment-level object
## otu_table() OTU Table: [ 4 taxa and 36 samples ]
## sample_data() Sample Data: [ 36 samples by 6 sample variables ]
## tax_table() Taxonomy Table: [ 4 taxa by 8 taxonomic ranks ]
## Analysis of Variance Table
##
## Response: Distances
## Df Sum Sq Mean Sq F value Pr(>F)
## Groups 3 0.09645 0.032150 1.1237 0.3541
## Residuals 32 0.91550 0.028609
## Permutation test for adonis under reduced model
## Terms added sequentially (first to last)
## Permutation: free
## Number of permutations: 1500
##
## adonis2(formula = seq_core ~ Treatment + Genotype, data = samdf_core, permutations = 1500)
## Df SumOfSqs R2 F Pr(>F)
## Treatment 3 0.13732 0.08576 1.0368 0.3931
## Genotype 8 0.40440 0.25255 1.1450 0.3578
## Residual 24 1.05952 0.66169
## Total 35 1.60124 1.00000
## Analysis of Variance Table
##
## Response: Distances
## Df Sum Sq Mean Sq F value Pr(>F)
## Groups 3 0.05077 0.016924 1.1358 0.3494
## Residuals 32 0.47684 0.014901
## Permutation test for adonis under reduced model
## Terms added sequentially (first to last)
## Permutation: free
## Number of permutations: 1500
##
## adonis2(formula = seq_core_rel ~ Treatment + Genotype, data = samdf_core, permutations = 1500)
## Df SumOfSqs R2 F Pr(>F)
## Treatment 3 0.07762 0.10431 1.1373 0.3498
## Genotype 8 0.12050 0.16195 0.6622 0.7375
## Residual 24 0.54597 0.73374
## Total 35 0.74409 1.00000
## phyloseq-class experiment-level object
## otu_table() OTU Table: [ 256 taxa and 36 samples ]
## sample_data() Sample Data: [ 36 samples by 6 sample variables ]
## tax_table() Taxonomy Table: [ 256 taxa by 8 taxonomic ranks ]
## Analysis of Variance Table
##
## Response: Distances
## Df Sum Sq Mean Sq F value Pr(>F)
## Groups 3 0.059568 0.0198560 2.9837 0.04577 *
## Residuals 32 0.212953 0.0066548
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## Permutation test for adonis under reduced model
## Terms added sequentially (first to last)
## Permutation: free
## Number of permutations: 1500
##
## adonis2(formula = seq_acc ~ Treatment + Genotype, data = samdf_acc, permutations = 1500)
## Df SumOfSqs R2 F Pr(>F)
## Treatment 3 1.1565 0.09475 1.175 0.17122
## Genotype 8 3.1758 0.26018 1.210 0.07928 .
## Residual 24 7.8741 0.64508
## Total 35 12.2065 1.00000
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## Analysis of Variance Table
##
## Response: Distances
## Df Sum Sq Mean Sq F value Pr(>F)
## Groups 3 0.03151 0.010505 0.7712 0.5187
## Residuals 32 0.43589 0.013621
## Permutation test for adonis under reduced model
## Terms added sequentially (first to last)
## Permutation: free
## Number of permutations: 1500
##
## adonis2(formula = seq_acc_rel ~ Treatment + Genotype, data = samdf_acc, permutations = 1500)
## Df SumOfSqs R2 F Pr(>F)
## Treatment 3 0.8020 0.08162 0.9734 0.5163
## Genotype 8 2.4324 0.24755 1.1071 0.1546
## Residual 24 6.5916 0.67083
## Total 35 9.8260 1.00000
Performing this analysis with ANCOM and a tutorial for it can be found here. I am mostly following Nicola’s code from her Moorea paper.
No differentially abundant taxa were identified!
Figure SXX. Relative abundance of major ITS2 types by coral fragment (x axis) and treatment (facets). Light green represent Symbiodinium spp. (A3) and dark green represents Breviolum spp. (B2).
DNA was extracted using an RNAqueous kit (ThermoFisher Scientific) as described above, except samples were not subjected to the DNA removal step. Internal transcribed spacer region 2 (ITS2) PCR amplification was performed using SYM_VAR_5.8S2 and SYM_VAR_REV primers (as described in Hume et al. 2013, 2015) using the following PCR profile: 26 cycles of 95℃ for 40 s, 59℃ for 2 min, 72℃ for 1 min and a final extension of 72℃ for 7 min. A negative control was included and it failed to amplify so it was not sequenced. PCR products were cleaned using the GeneJET PCR Purification kit (ThermoFisher Scientific) according to the manufacturer’s instructions. A second PCR was performed to dual-barcode samples before pooling, which was done based on the visualization of band intensity on a 1% agarose gel. 20 μl of the pool was run on a 2% SYBR Green gel for 100 min at 70 V. The target band was excised and placed in 30 μl of Milli-Q water overnight at 4℃. The supernatant concentration was measured using a DeNovix DS-11+ Spectrophotometer.
The V4 region of the 16S rRNA gene was amplified via PCR using Hyb515f and Hyb806R primers (Parada et al. 2016, Apprill et al. 2015) and the following PCR profile: 30 cycles of 95℃ for 40 s, 63℃ for 2 min, 72℃ for 1 min and a final extension of 7 min. Two negative controls using Milli-Q water were also prepared during the 16S library preparations and these samples were also sequenced. The same procedure as described above for the ITS2 samples was then followed. Concentrations of the ITS2 and 16S pools were used to combine the two pools in a 1:3 ratio respectively. Libraries were sequenced on Illumina MiSeq (paired-end 250 bp) at Tufts Genomics Core Facility.
Demultiplexed reads were pre-processed using bbmap (CITE) to remove adapters and to split ITS2 and 16S reads based on primers. Resulting ITS2 reads were then analyzed using the SymPortal framework (Hume et al., 2019) by submitting paired fastq.gz files directly to SymPortal. Samples were subjected to standard sequence quality control protocols using MOTHUR 1.39.5 (Schloss et al., 2009), the BLAST+ suite of executables (Camacho et al., 2009), and minimum entropy decomposition (Eren et al., 2015). SymPortal identifies specific sets of defining intragenomic ITS2 sequence variants (DIVs) to define ITS2 type profiles that are indicative of genetically differentiated Symbiodiniaceae taxa (Hume et al., 2019).
16S primers were removed using cutadapt (CITE) and DADA2 (CITE) was used to conduct quality filtering and inference of 3493 amplicon sequence variants (ASVs) (see Table SXX to track reads lost through filtering). 16S taxonomy was assigned using the Silva v. 138.1 database (CITE) and National Center for Biotechnology Information’s nucleotide database using blast+ (CITE). ASVs matching mitochondria, chloroplasts, or non-bacterial kingdoms were removed (216 total) and 5 ASVs were removed based on negative controls as contaminants (Decontam; (CITE)). Cleaned counts were then rarefied to 9409 per sample using vegan (CITE), trimmed using MCM.OUT (CITE) to remove ASVs present in less than 0.01% of counts, and then rarefied again to 6829 resulting in 260 ASVs. DIVERSITY AND COMMUNITY ANALYSES
Results text goes here
Figure 2. Relative abundance of major ITS2 types grouped by treatment (n = 4-5 corals per treatment). Light purple represents Symbiodinium fitti (A3) and dark purple represents Breviolum minutum (B2).
Figure 5: Acropora cervicornis bacterial (16S) relative abundance across fragments and experimental treatments. Diversity at the phylum level (A) depicts dominance of all samples by taxa from Proteobacteria and this (B) phylum was dominated by the order Rickettsiales in most samples. Beta diversity was visualized through (C) multivariate ordination plots (PCoA) of between-sample Bray–Curtis dissimilarity of rarefied ASVs of all taxa and (D) distance to treatment centroids. PCoA ellipses depict 95% confidence intervals and p-values indicate significance of treatment and genotype.
All code was written by Colleen B. Bove, feel free to contact with questions.
Session information from the last run date on 18 August 2022:
## R version 3.6.3 (2020-02-29)
## Platform: x86_64-apple-darwin15.6.0 (64-bit)
## Running under: macOS Catalina 10.15.7
##
## Matrix products: default
## BLAS: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRblas.0.dylib
## LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib
##
## locale:
## [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
##
## attached base packages:
## [1] stats4 parallel stats graphics grDevices utils datasets
## [8] methods base
##
## other attached packages:
## [1] nlme_3.1-155 compositions_2.0-4
## [3] patchwork_1.1.1 lme4_1.1-28
## [5] car_3.1-0 carData_3.0-5
## [7] performance_0.8.0 awtools_0.2.1
## [9] microbiome_1.8.0 ggpubr_0.4.0
## [11] MCMC.OTU_1.0.10 MCMCglmm_2.33
## [13] ape_5.6-1 coda_0.19-4
## [15] Matrix_1.3-4 janitor_2.1.0
## [17] vegan_2.5-7 lattice_0.20-45
## [19] permute_0.9-7 plotly_4.10.0
## [21] RColorBrewer_1.1-3 decontam_1.6.0
## [23] phyloseq_1.30.0 kableExtra_1.3.4
## [25] ShortRead_1.44.3 GenomicAlignments_1.22.1
## [27] SummarizedExperiment_1.16.1 DelayedArray_0.12.3
## [29] matrixStats_0.62.0 Biobase_2.46.0
## [31] Rsamtools_2.2.3 GenomicRanges_1.38.0
## [33] GenomeInfoDb_1.22.1 Biostrings_2.54.0
## [35] XVector_0.26.0 IRanges_2.20.2
## [37] S4Vectors_0.24.4 BiocParallel_1.20.1
## [39] BiocGenerics_0.32.0 forcats_0.5.1
## [41] stringr_1.4.0 dplyr_1.0.8
## [43] purrr_0.3.4 readr_2.1.2
## [45] tidyr_1.2.0 tibble_3.1.7
## [47] ggplot2_3.3.6 tidyverse_1.3.1
## [49] dada2_1.20.0 Rcpp_1.0.9
## [51] knitr_1.33
##
## loaded via a namespace (and not attached):
## [1] readxl_1.3.1 backports_1.4.1 systemfonts_1.0.2
## [4] plyr_1.8.7 igraph_1.2.11 lazyeval_0.2.2
## [7] splines_3.6.3 crosstalk_1.2.0 digest_0.6.29
## [10] foreach_1.5.2 htmltools_0.5.2 fansi_1.0.3
## [13] magrittr_2.0.3 cluster_2.1.2 tzdb_0.2.0
## [16] modelr_0.1.8 bayesm_3.1-4 RcppParallel_5.1.5
## [19] svglite_2.1.0 jpeg_0.1-9 colorspace_2.0-3
## [22] rvest_1.0.1 textshaping_0.3.6 haven_2.4.3
## [25] xfun_0.29 crayon_1.5.1 RCurl_1.98-1.7
## [28] jsonlite_1.7.2 survival_3.2-13 iterators_1.0.14
## [31] glue_1.6.2 gtable_0.3.0 zlibbioc_1.32.0
## [34] webshot_0.5.2 Rhdf5lib_1.8.0 DEoptimR_1.0-11
## [37] abind_1.4-5 scales_1.2.0 DBI_1.1.3
## [40] rstatix_0.7.0 viridisLite_0.4.0 htmlwidgets_1.5.4
## [43] httr_1.4.3 ellipsis_0.3.2 farver_2.1.1
## [46] pkgconfig_2.0.3 sass_0.4.0 dbplyr_2.1.1
## [49] deldir_1.0-6 utf8_1.2.2 labeling_0.4.2
## [52] tidyselect_1.1.1 rlang_1.0.4 reshape2_1.4.4
## [55] munsell_0.5.0 cellranger_1.1.0 tools_3.6.3
## [58] cachem_1.0.6 cli_3.3.0 generics_0.1.3
## [61] ade4_1.7-18 broom_1.0.0 evaluate_0.15
## [64] biomformat_1.14.0 fastmap_1.1.0 ragg_1.1.3
## [67] yaml_2.3.5 fs_1.5.2 robustbase_0.93-9
## [70] xml2_1.3.3 compiler_3.6.3 rstudioapi_0.13
## [73] png_0.1-7 ggsignif_0.6.3 reprex_2.0.1
## [76] bslib_0.4.0 stringi_1.7.8 highr_0.9
## [79] cubature_2.0.4.2 nloptr_1.2.2.3 tensorA_0.36.2
## [82] multtest_2.42.0 vctrs_0.4.1 pillar_1.8.0
## [85] lifecycle_1.0.1 jquerylib_0.1.4 cowplot_1.1.1
## [88] insight_0.18.0 data.table_1.14.2 bitops_1.0-7
## [91] corpcor_1.6.10 R6_2.5.1 latticeExtra_0.6-30
## [94] hwriter_1.3.2.1 gridExtra_2.3 codetools_0.2-18
## [97] boot_1.3-28 MASS_7.3-55 assertthat_0.2.1
## [100] rhdf5_2.30.1 withr_2.5.0 GenomeInfoDbData_1.2.2
## [103] mgcv_1.8-38 hms_1.1.1 grid_3.6.3
## [106] minqa_1.2.4 rmarkdown_2.13 snakecase_0.11.0
## [109] Rtsne_0.15 lubridate_1.8.0 interp_1.0-33